From 06952d807a0980c6d4de0275fc53c7236db8cb20 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 25 Nov 2014 19:33:18 +0100 Subject: [PATCH] testsuite: Add a bunch of parsing tests for :not() --- testsuite/css/parser/Makefile.am | 2 + testsuite/css/parser/not.css | 80 ++++++++++++++++++++++++++++++++ testsuite/css/parser/not.ref.css | 80 ++++++++++++++++++++++++++++++++ 3 files changed, 162 insertions(+) create mode 100644 testsuite/css/parser/not.css create mode 100644 testsuite/css/parser/not.ref.css diff --git a/testsuite/css/parser/Makefile.am b/testsuite/css/parser/Makefile.am index 4c35afeecf..d148cedc13 100644 --- a/testsuite/css/parser/Makefile.am +++ b/testsuite/css/parser/Makefile.am @@ -326,6 +326,8 @@ test_data = \ linear-gradient.ref.css \ no-semicolon.css \ no-semicolon.ref.css \ + not.css \ + not.ref.css \ nth-child.css \ nth-child.ref.css \ property-name-errors.css \ diff --git a/testsuite/css/parser/not.css b/testsuite/css/parser/not.css new file mode 100644 index 0000000000..59da972028 --- /dev/null +++ b/testsuite/css/parser/not.css @@ -0,0 +1,80 @@ +:not(*) { + color: tomato; +} + +:not(GtkButton) { + color: tomato; +} + +:not(:hover) { + color: tomato; +} + +:not(.yourmom) { + color: tomato; +} + +:not(#yourmom) { + color: tomato; +} + +:not( *) { + color: tomato; +} + +:not( GtkButton) { + color: tomato; +} + +:not( :hover) { + color: tomato; +} + +:not( .yourmom) { + color: tomato; +} + +:not( #yourmom) { + color: tomato; +} + +:not(* ) { + color: tomato; +} + +:not(GtkButton ) { + color: tomato; +} + +:not(:hover ) { + color: tomato; +} + +:not(.yourmom ) { + color: tomato; +} + +:not(#yourmom ) { + color: tomato; +} + +:not( * ) { + color: tomato; +} + +:not( GtkButton ) { + color: tomato; +} + +:not( :hover ) { + color: tomato; +} + +:not( .yourmom ) { + color: tomato; +} + +:not( #yourmom ) { + color: tomato; +} + diff --git a/testsuite/css/parser/not.ref.css b/testsuite/css/parser/not.ref.css new file mode 100644 index 0000000000..7cb0fb3e9c --- /dev/null +++ b/testsuite/css/parser/not.ref.css @@ -0,0 +1,80 @@ +:not(*) { + color: rgb(255,99,71); +} + +:not(GtkButton) { + color: rgb(255,99,71); +} + +:not(:hover) { + color: rgb(255,99,71); +} + +:not(.yourmom) { + color: rgb(255,99,71); +} + +:not(#yourmom) { + color: rgb(255,99,71); +} + +:not(*) { + color: rgb(255,99,71); +} + +:not(GtkButton) { + color: rgb(255,99,71); +} + +:not(:hover) { + color: rgb(255,99,71); +} + +:not(.yourmom) { + color: rgb(255,99,71); +} + +:not(#yourmom) { + color: rgb(255,99,71); +} + +:not(*) { + color: rgb(255,99,71); +} + +:not(GtkButton) { + color: rgb(255,99,71); +} + +:not(:hover) { + color: rgb(255,99,71); +} + +:not(.yourmom) { + color: rgb(255,99,71); +} + +:not(#yourmom) { + color: rgb(255,99,71); +} + +:not(*) { + color: rgb(255,99,71); +} + +:not(GtkButton) { + color: rgb(255,99,71); +} + +:not(:hover) { + color: rgb(255,99,71); +} + +:not(.yourmom) { + color: rgb(255,99,71); +} + +:not(#yourmom) { + color: rgb(255,99,71); +} + -- 2.30.2